<template>
  <div class="lock-container">
    <div class="logobox">
      <div class="leftImg"></div>
      <div class="lock-form">
        <p class="title">{{ logoName }}</p>
        <div>
          <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
            <el-tab-pane label="供应商登录" name="0">
              <Suppiler></Suppiler>
            </el-tab-pane>
            <el-tab-pane label="手机号登录" name="1">
              <Account></Account>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue';
import Account from './components/account.vue' // 账号登录
import Suppiler from './components/Suppiler.vue' // 供应商登录

const activeName = ref('1')
const logoName = ref(import.meta.env.VITE_APP_BASE_NAME)
const handleClick = (tab, event) => {
  console.log(tab, event)
}
</script>

<style lang='scss' scoped>
  .lock-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    .logobox{
      width: 80%;
      height: 70%;
      background-color: #F5F5F5;
      display: flex;
      align-items: center;
      .leftImg{
        width: 50%;
        height: 100%;
        background-image: url('../../assets/img/bg2.png');
        background-size:100% 100%;
      }
      .lock-form {
        width: 400px;
        margin: 0 auto;
        .title{
          font-size: 40px;
          padding-bottom: 56px;
          font-weight: bold;
          text-align: center;
          letter-spacing:3px;
          color: #2882FE;
        }
      }
    }
    &::before{
      z-index: -999;
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-image: url("../../assets/img/bg1.png");
      background-size: cover;
    }
  }
:deep(.el-tabs__nav-scroll){
  display: flex;
  justify-content: center;
}
:deep(.el-tabs__nav-wrap::after){
  width:0px;
  height: 0px;
}
:deep(.el-tabs__nav-scroll){
  border-bottom: 1px solid  rgba(102, 102, 102, 0.226);
}
</style>
